package com.xfdmao.gate.feign.impl;

import com.xfdmao.gate.feign.UserFeign;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by fier on 2017/11/26.
 */
@Component
public class UserFeignImpl implements UserFeign{
    @Override
    public String getHome() {
        return "hystrix getHome";
    }

    @Override
    public String sayHi(@RequestParam(value = "username") String username) {
        return "hystrix sayHi";
    }
}
